﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace eBookDomain
{
  public class Author
  {
    #region Properties

      private Int32 _authorID;
      public virtual Int32 AuthorID
      {
        get { return _authorID; }
        set { _authorID = value; }
      }

      private string _name;
      public virtual string Name
      {
        get { return _name; }
        set { _name = value; }
      }
      
      private DateTime? _dateOfBirth;
      public virtual DateTime? DateOfBirth
      {
        get { return _dateOfBirth; }
        set { _dateOfBirth = value; }
      }

      private DateTime? _dateOfDeath;
      public virtual DateTime? DateOfDeath
      {
        get { return _dateOfDeath; }
        set { _dateOfDeath = value; }
      }

      private int _version;
      public virtual int Version
      {
        get {return _version;}
        set {_version = value;}
      }

      private IList<Book> _books;
      public virtual IList<Book> Books
      {
        get { return _books;}
        set { _books = value;}
      } 
      
    #endregion

  }
}
